<%@ page  contentType="text/html; charset=UTF-8"%>
<%@ include file="../../public/public.jsp" %>

<% int rowColor = 1; 
	int pageSize = ((Integer)valueStack.findValue("pageForm.pageSize")).intValue();
	int pageNo = ((Integer)valueStack.findValue("pageForm.pageNo")).intValue();
	int rowNo = (pageNo-1)*pageSize+1;
%>
    <table  cellspacing="1" class="dataTableStyle"> 
    	<thead>
    	<s:if test="pagePosition.toLowerCase().equals('top') || pagePosition.toLowerCase().equals('all')">
    		<tr bgcolor="#FFFFFF">
    			<td colspan="20">
    				<ss:page value="pageForm"></ss:page>
    			</td>
    		</tr>
    		</s:if>
    		<tr>
    			<th align="center" width=5%">序号</th>
				<th align="center" width="20%">名称</th>
				<th align="center" width="8%">主编/参编</th>
				<th align="center" width="8%">制定/修订</th>
				<th align="center" width="15%">参与单位</th>
				<th align="center" width="9%">开始时间</th>
				<th align="center" width="10%">已完成进度</th>
				<ss:condition rescode="SpecificationFormation" optcode="PRINT||GLOBAL">
    			<th align="center" width="15%">报送单位</th>
    			</ss:condition>
    			<ss:condition rescode="SpecificationFormation" optcode="UPDATE||DELETE">
				<th align="center" width="10%">操作</th>
				</ss:condition>
    		</tr>
    	</thead>
    	<tbody>
    		<s:set name="yearflag" value=""></s:set>
    		<s:iterator value="data">
    		<% if((rowColor++ %2)==0){ %>
    		<tr onmouseover="changeRowColor(this)" onmouseout="resumeRowColor(this,<%=rowColor%2 %>)" class="data_tr_bgcs1">
    		<%}else{ %>
    		<tr onmouseover="changeRowColor(this)" onmouseout="resumeRowColor(this,<%=rowColor%2 %>)" class="data_tr_bgcs2">
    		<%} %>
			
				<s:if test="belongYear!=#yearflag">
    			<s:set name="yearflag" value="belongYear"></s:set>
    				<td colspan="9" class="yearTDStyle">&nbsp;&nbsp;<s:property value="belongYear"/>年</td>
    				</tr>
    				<% 
    				rowNo=1;
    				if((rowColor++ %2)==0){ %>
    					<tr onmouseover="changeRowColor(this)" onmouseout="resumeRowColor(this,<%=rowColor%2 %>)" class="data_tr_bgcs1">
    				<%}else{ %>
    					<tr onmouseover="changeRowColor(this)" onmouseout="resumeRowColor(this,<%=rowColor%2 %>)" class="data_tr_bgcs2">
    				<%} %>
    			</s:if>
    			<td align="center">
    			<%=rowNo++ %>
    			</td>
    			<td align="center"><a href='javascript:lookView(<s:property value="id"/>)' style="cusor:hand">
    				<s:property value="standardName"/></a> </td>
				<td align="center">
    				<s:if test="editorOrActor==1">主编</s:if>
    				<s:elseif test="editorOrActor==2">参编</s:elseif>
    			</td>
				<td align="center">
    				<s:if test="createOrModify==1">制定</s:if>
    				<s:elseif test="createOrModify==2">修订</s:elseif>
    			</td>
    			<td align="center"><s:property value="joinDep"/></td>
				<td align="center">
					<s:date name="startDate" format="yyyy-MM-dd" />
				</td>
				<td align="center">
					<s:if test="schedules==1">立项批复</s:if>
					<s:elseif test="schedules==2">工作大纲</s:elseif>	
					<s:elseif test="schedules==3">征求意见稿</s:elseif>
					<s:elseif test="schedules==4">送审稿</s:elseif>
					<s:elseif test="schedules==5">总校稿</s:elseif>
					<s:elseif test="schedules==6">报批稿</s:elseif>
					<s:elseif test="schedules==7">正式颁布</s:elseif>
				</td>
    			<ss:condition rescode="SpecificationFormation" optcode="PRINT||GLOBAL">
    				<td align="center"><s:property value="sentDepName"/></td>
    			</ss:condition>
    			<ss:condition rescode="SpecificationFormation" optcode="UPDATE||DELETE">
    			<td align="center">
    				<ss:condition rescode="SpecificationFormation" optcode="UPDATE">
						<a href="javascript:goUpdate(<s:property value="id"/>)">[修改]</a>
					</ss:condition><!--
    				&nbsp;
    				--><ss:condition rescode="SpecificationFormation" optcode="DELETE">
						<a href="javascript:del(<s:property value="id"/>)">[删除]</a>
					</ss:condition>
    			</td>
					</ss:condition>
    			
    		 </tr>
    		</s:iterator>
    	</tbody>
		<tfoot>
    	<s:if test="pagePosition.toLowerCase().equals('buttom') || pagePosition.toLowerCase().equals('all')">
    		<tr class="dataList_pageForm_style">
    			<td colspan="20">
    				<ss:page value="pageForm"></ss:page>
    			</td>
    		</tr>
    		</s:if>
    	</tfoot>
    </table>